let a = new Array(5);
console.log(a.length); // 5
// 创建一个空数组，此时 length = 0
a = [];
a[1000] = 0;
console.log(a.length); // 1001
